<template>
	<el-scrollbar style="height: 100%;" v-if="needAppScrollbar">
		<router-view />
	</el-scrollbar>
	<router-view v-else />
</template>

<script>
	import {$get,$post} from '@/puigins/request.js'
	export default{
		computed:{
			needAppScrollbar(){
				return this.$store.state.needAppScrollbar
			}
		},
		created() {
			$get('/test',{
				url:'https://baidu.com?a=b&c=d',
				name:'xiaohu',
				a:'abcde'
			})
		}
	}
</script>

<style lang="scss">
	* {
		padding: 0;
		margin: 0;
		list-style: none;
		text-decoration: none;
	}

	html,
	body,
	#app {
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	#app {
		display: flex;
		flex-direction: column;
	}
</style>
